package com.bigknow.appstore.web.base.entity.enums;

/**
 * Created by TwelveFoldEr on 2016/3/14.
 */
public enum State {
    ACTIVE, DISABLED;

    public static State get(int v) {
        String str = String.valueOf(v);
        return get(str);
    }

    public static State get(String str) {
        for (State e : values()) {
            if (e.toString().equals(str)) {
                return e;
            }
        }
        return null;
    }
}
